package com.panda.web.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WxPayConfig {
    @Value("${wx.app-id}")
    private String appId;

    @Value("${wx.mch-id}")
    private String mchId;

    @Value("${wx.api-key}")
    private String apiKey;

    @Value("${wx.notify-url}")
    private String notifyUrl;

    // 新增退款配置
    @Value("${wx.refundNotifyUrl}")
    private String refundNotifyUrl; // 退款回调地址
    @Value("${wx.keyPath}")
    private String keyPath;        // 支付证书路径
    @Value("${wx.certSerialNo}")
    private String certSerialNo;

    public String getAppId() {
        return appId;
    }

    public String getMchId() {
        return mchId;
    }

    public String getApiKey() {
        return apiKey;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public String getRefundNotifyUrl() {
        return refundNotifyUrl;
    }
    public String getKeyPath() {
        return keyPath;
    }
    public String getCertSerialNo() {
        return certSerialNo;
    }

}